/**
 * 
 */
package com.naiterui.ehp.bp.domain;


import javax.persistence.*;
import java.util.Date;

/**
 * 医生图文诊金收费设置实体
 * @author guoyongxiang
 * @since 2.7.0
 */
@Table(name = "dr_message_consult_charge")
@Entity
public class DrMessageConsultCharge implements java.io.Serializable {

    /**
     * 字段或域定义：<code>serialVersionUID</code>
     */
    private static final long serialVersionUID = 2484532910050274174L;

    /** 联合主键 */
    private DrMessageConsultChargePK chargePK;
    /** 收费金额（单位分） */
    private Integer charge;
    /** 创建时间 */
    private Date createdAt;
    /** 创建人 */
    private String createdBy;
    /** 修改时间 */
    private Date changedAt;
    /** 乐观锁 */
    private Integer version;


    @EmbeddedId
    public DrMessageConsultChargePK getChargePK() {
        return chargePK;
    }

    public void setChargePK(DrMessageConsultChargePK chargePK) {
        this.chargePK = chargePK;
    }

    @Column(name = "charge")
    public Integer getCharge() {
        return charge;
    }

    public void setCharge(Integer charge) {
        this.charge = charge;
    }

    @Column(name = "created_at")
    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    @Column(name = "created_by")
    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    @Column(name = "changed_at")
    public Date getChangedAt() {
        return changedAt;
    }

    public void setChangedAt(Date changedAt) {
        this.changedAt = changedAt;
    }

    @Version
    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

}
